<!DOCTYPE html>
<html>
	<head>
		<meta charset="utf-8">
		<title></title>
	</head>
	<body>
		<h3>保时捷718 Cayman T,红色,641000元起</h3>
		<script>
			//js定义对象，它有很多属性
			//var car =new Object();
			//{}是对象，不能写;对象属性name,后面是值
			var car ={
				name:"保时捷718",//如果多个属性使用逗号隔开
				type:"Cayman T",
				
			}
			console.log(car);
			//动态增加属性，java做不到，静态语言
			car.name = "保时捷718";
			car.type = "Cayman T";
			car.color = "红色";
			car.price = 641000;
			console.log(car);
			
		</script>
	</body>
</html>
